
import {setValidator} from "../decorator/setValidator";
import {validatorEnum} from "../validator/validatorEnum";
import {mc_validatorResult} from "./mc_validatorResult";
import {test} from "./test";
import {clearParentValidator} from "../decorator/clearParentValidator";
import {getValidators} from "../decorator/getValidators";
/**
 * Created by ybjaa on 2017/7/3.
 */

export class test2 extends test{


    @clearParentValidator()
    @setValidator(validatorEnum.require,"测试1,")
    @setValidator(validatorEnum.maxAndMinLength,"测试1:",4,10)
    test:string="2test";


    @setValidator(validatorEnum.require)
    @setValidator(validatorEnum.regularFail,"测试2",/^[0-9]+$/)
    test2:string="aassddd";


    test3:number=0;


    @getValidators()
    getValiator1(result:boolean=null,results:mc_validatorResult=null):boolean{
        return result;
    }



}